package com.vercon.common;

import android.os.Environment;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;



public class Constants {

    public static final String BASE_DEBUG_URL = "https://killertest.i-mrmax.com/mj/backend/";//测试服
    public static final String PRE_RELEASE_DEBUG_URL = "https://killerrelease.i-mrmax.com/mj/backend/";//预发布服

    public static final String BASE_RELEASE_URL = "https://killer.i-mrmax.com/mj/backend/";//正式服

//    public static final String SYSTEM_ID = "60de6fed20e71f7e53fa7f9a";//当前系统id，后台给，固定id
    public static final String SYSTEM_VERSION = "PAIOS";//系统版本标识

    public static String mrmax_appid = "aadlklasdjfpqweipfnajsfdajsdfaa";

    public static final String rk3288 = "rk3288";
    public static final String rk3368 = "rk3368";
    public static final String rk3128 = "rk3128";


    public static final int rxTimeNum = 2000;//2秒
    public static final int rxTime30 = 30000;//30秒

    public static final String LOCAL_TOWEL_RACK_LIST_DATA = "LOCAL_TOWEL_RACK_LIST_DATA";

    public static final String show_user_guide = "show_user_guide";
    public static final String jump_home_music = "jump_home_music";

    public static final String jump_home_skin_beauty = "jump_home_skin_beauty";
    public static final String jump_home_skin_album = "jump_home_skin_album";

    public static final String USER_LOGIN_FIRST = "USER_LOGIN_FIRST";//激活后用户登录逻辑
    public static final String USER_LOGIN = "USER_LOGIN";//用户登录逻辑

    public static final String USER_UPDATE_INFO = "USER_UPDATE_INFO";//更新用户信息用户

    public static final String USER_UNBIND = "USER_UNBIND";//用户解绑 跳转到退出界面

    public static final String USER_INFO = "USER_INFO"; //当前登录的用户信息
    public static final String refreshWeather = "refreshWeather";//刷新天气
    public static final String refreshDemist = "refreshDemist";//刷新除雾状态
    public static final String refreshLight = "refreshLight";//刷新灯光状态
    public static final String refreshAir = "refreshAir";//刷新空气质量
    public static final String closeScreen = "closeScreen";
    public static final String closeSleep = "closeSleep";

    public static final String brightScreen = "brightScreen";
    public static final String refreshMusicData = "refreshMusicData";//刷新音乐数据
    public static final String refreshMusicBtn = "refreshMusicBtn";//刷新音乐播放状态
    public static final String refreshWifi = "refreshWifi";//刷新wifi状态
    public static final String updateMode = "updateMode";//更新信息
    public static final String updateFirmware = "updateFirmware";//升级
    public static final String Firmware_Save = "Firmware_Save";//推送的固件更新信息保存，如果推送过来的，没有更新，就继续

    public static final String HOME_CARD_DEFAULT = "HOME_CARD_DEFAULT"; //首页卡片 默认配置信息
    public static final String HOME_CARD_SET = "HOME_CARD_SET"; //首页卡片 配置信息

    public static final String HOME_CARD_ALBUM_LEFT_INDEX = "HOME_CARD_ALBUM_LEFT_INDEX"; //相册卡片 选中的 分组Id
    public static final String HOME_CARD_VIDEO_TYPE = "HOME_CARD_VIDEO_TYPE"; //视频卡片 选中的 显示类型
    public static final String SKIN_PLAN_TABLE = "SKIN_PLAN_TABLE"; //已生成的日程表
    public static final String SKIN_PLAN_MODE = "SKIN_PLAN_MODE"; //懒人、高效、精致模式

    public static final String sleep_num = "sleep_num";//保存休眠分钟
    public static final String screen_num = "screen_num";//保存息屏小时
    public static final String screen_event = "screen_event";
    public static final String start_apng = "start_apng";
    public static final String tab_fliqlo_timer_num = "tab_fliqlo_timer_num";//保存屏保定时时间
    public final static String DEVICE_IDLE_START_TIME = "killdevice_idle_time_zh"; //当前设备进入空闲的时间
    public final static String FLIQLO_SWITCH = "fliqlo_switch"; //设备屏保开关
    public final static String FLIQLO_RANDOM_PLAY = "fliqlo_random_play"; //屏保是否为随机播放
    public final static String FLIQLO_CURRENT_THEME = "fliqlo_current_theme_data"; //屏保当前主题
    public static final String FliqloTab = "FliqloTab";

    public final static String DESKTOP_CURRENT_WALLPAPER = "desktop_current_wallpaper_data"; //桌面当前壁纸
    public final static String DESKTOP_USER_WALLPAPER_DATA_TIME = "desktop_user_wallpaper_data_time"; //用户上传的壁纸数据时间

    public static final String ALARM_CURRENT_TIME = "alarm_current_time"; //计时器 当前时间
    public static final String ALARM_TOTAL_TIME = "alarm_total_time"; //计时器 总时间
    public static final String ALARM_TITLE_MAIN = "alarm_title_main"; //计时器 标题
    public static final String ALARM_KEEP_TIME_STATE = "alarm_keep_time_state"; //保存计时器暂停状态
    public static final String ALARM_DEFAULT_DATA_SET = "alarm_keep_time_state_set"; //计时器是否已经初始化过默认数据

    public static final String bluetooth_discoverable = "bluetooth_discoverable";//蓝牙请求可被发现计时状态
    public static final String bluetooth_discoverable_time = "bluetooth_discoverable_time";//蓝牙请求可被发现倒计时
    public static final String bluetooth_discoverable_time_long = "bluetooth_discoverable_time_long";//蓝牙请求可被发现倒计时Long
    public static final String bluetooth_master_state = "bluetooth_master_state";//应用蓝牙主体状态，因为体脂秤和测肤仪一直有蓝牙开关的操作

    public static final String skin_plan_edit_table_state = "skin_plan_edit_table_state";//美肤计划日程表 可编辑提示

    public static final String sleep_event = "sleep_event";
    public static final String home_menu = "home_menu";
    public static final String home_weather_refresh = "home_weather_refresh";

    public static final String home_weather_stop = "home_weather_stop";
    public static final String home_weather_start = "home_weather_start";

    public static final String home_wallpaper_stop = "home_wallpaper_stop";
    public static final String home_wallpaper_start = "home_wallpaper_start";
    public static final String home_wallpaper_appstore = "home_wallpaper_appstore";

    public static final String refresh_wallpaper_list = "refresh_wallpaper_list";

    public static final String MoreApp = "MoreApp";
    public static final String SettingTabLanguageWidth = "SettingTabLanguageWidth";
    public static final String refreshHomeWeather = "refreshHomeWeather";//刷新天气
    public static final String refreshLanguage = "refreshLanguage";//切换语言
    public static final String timeZone = "timeZone";//时区
    public static final String current_application = "current_application";//当前APP
    public static final String unread_messages = "unread_messages";//未读消息数量
    public static final String Warningresult = "Warningresult";//预警天气
    public static final String commend1_7_1 = "cat /sys/devices/platform/ff100000.saradc/iio:device0/in_voltage0_raw \n";//7.1系统判断雷达距离的指令

    public final static String OneVideo = "OneVideo";//第一次看优选生活的视频
    public final static String OneWindow = "OneWindow";//第一次左右切换优选生活视频窗口

    public static final String switch_weather = "switch_weather";//保存是否显示预警
    public static final String switch_voice = "switch_voice";//保存是否朗读天气详情
    public static final String switch_weather_voice = "switch_weather_voice";//朗读天气详情的内容


    public static final String isFirstOpenFliqlo = "isfirst_open_fliqlo";////屏保引导提示
    public static final String isFirstOpenWallpaper = "isfirst_open_wallpaper";//屏保引导提示
    public static final String APP_GUIDE = "vercon_app_gudie";//是否已完成应用 引导

    // smarthome
    public final static String STORAGE_KEY_SMARTHOME_ADMIN_INFO = "userAdminInfo";
    public final static String STORAGE_KEY_OPEN_APPPAGENAME = "openapppagename";
    public final static String STORAGE_KEY_DEVICE_NAME = "DevicesName";
    public final static String STORAGE_KEY_CUR_LANGUAGE = "CurLanguage";

    public static final int DEFAULT_ARC_WIDTH = 15;
    public final static String STORAGE_KEY_TOKEN = "Token";
    public final static String STORAGE_KEY_ACTIVATE = "activate";
    public final static String STORAGE_KEY_ACTIVATE_NEW = "activate_new";//用来恢复出厂设置时候，使用激活时候语言
    public final static String STORAGE_KEY_OTA = "ota_go";//ota推送
    public final static String STORAGE_BRUSH_SET = "brush_set";//刷牙设置信息

    public final static String SYSTEM_DEFAULT_TIMEZONE_ID = "Asia/Shanghai";//默认时区
    public final static String UNITS_METRIC = "metric";//摄氏度
    public final static String UNITS_IMPERIAL = "imperial";//华氏度

    public static final String MUSIC_LAST_TYPE = "-1";//音乐：上一首
    public static final String MUSIC_PLAY_TYPE = "0";//音乐：播放/暂停
    public static final String MUSIC_NEXT_TYPE = "1";//音乐：下一首
    public static final String version_product_version = "persist.product.version";//获取当前系统支持国内版还是海外版，0，国内，1，海外

    public static final String BLUETOOTH_MUSIC_UP = "BLUETOOTH_MUSIC_UP";
    public static final String BLUETOOTH_MUSIC_BACK = "BLUETOOTH_MUSIC_BACK";

    public static final int DEFAULT_SIZE = 150;
    public static final int DEFAULT_START_ANGLE = 270;
    public static final int DEFAULT_SWEEP_ANGLE = 360;

    public static final int DEFAULT_ANIM_TIME = 2500;

    public static final int DEFAULT_MAX_VALUE = 100;
    public static final int DEFAULT_VALUE = 50;

    public static final int DEFAULT_HINT_SIZE = 45;
    public static final int DEFAULT_UNIT_SIZE = 30;
    public static final int DEFAULT_VALUE_SIZE = 15;

    public static final int DEFAULT_WAVE_HEIGHT = 30;
    public static final float S3288_SIZE = 1920f;

    public static final int S3288_POPUPWINDOW_WIDTH = 1920;
    public static final int S3288_POPUPWINDOW_HEIGHT = 1080;

    public static final long DEIAY_DISMISS_POPUPWINDOW = 500l; //S系列延迟关闭popupwindow
    //引导页-选择语言 点击右下角10下启动质检工具
    public final static String testingtoolsPackeName = "com.vercon.testingtoolsmirror";
    public final static String startTestingToolsTip = "无质检工具";
    public static  boolean islan = false;//很奇怪，第一次激活，设置语言，我们界面不能刷新显示

    //本apk保存位置
    public static final String APK_SAVE_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + "/KillerMirror/killer_mirror.apk";
    //下载第三方apk保存位置
    public static final String APK_STORE_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + "/KillerMirror/app_store.apk";

    public static  List<String> listApkName = new ArrayList<>();//保存打开的第三方应用包名

    public static volatile Map<Integer, List<String>> skinOriginalTableMap = new HashMap<>();
    public static volatile Map<Integer, List<String>> skinProblemMap = new HashMap<>();

    public static boolean isUsershow= false;//设置哪里是否显示的用户，用了判断是否显示网络异常弹出
}
